# A bunch of extensions to standard classes that I've come to rely on in Rails.
class NilClass
  def blank?
    true
  end
end

class String
  def blank?
    empty?
  end

  def first(num)
    self[0..num]
  end
end
